<?php
	include '../../../configuration.php';
	
	$question_ids = $_POST['check_q'];

	$sql1 = "DELETE FROM `questions` WHERE q_id = ";
	$sql2 = "DELETE FROM `choices` WHERE q_id = ";
	
	for ($i = 0; $i < count($question_ids); $i++) {
		mysql_query($sql1.$question_ids[$i]);
		mysql_query($sql2.$question_ids[$i]);
	}
	header("Location: modify_question.php");

?>

